import BaseService from "@/service/base";
class Public extends BaseService {
	/**
	 * 分公司数据
	 */
	getGroupList(params) {
		return this.$post("/index/getgrouplist", params);
	}

	business(params) {
		return this.$get("/index/business", { params });
	}
	// 钉钉根据部门获取code
	getGroupListByDt(params) {
		return this.$post("/index/getGroupListByDt", params);
	}
	// 获取定金列表
	depositlist(biz_id) {
		return this.$get("/Config/depositlist", { params: { biz_id } });
	}
	// 获取待做服务列表
	serviceGetTypeSons(params) {
		return this.$get("/serviceitem/getTypeSons", { params });
	}
	//会员等级列表
	cusLevel(params) {
		return this.$get("/CustomerLevel/lists", { params });
	}
	// 获取角色
	roleList(params) {
		return this.$get("/index/getRole", { params });
	}
	// 判断登录密码是否为默认
	checkPwd(params) {
		return this.$post("/index/checkpwd", params, { silence: true }).then(res => {
			return res.is_rest == 1;
		});
	}
	//支付方式列表
	storePayment(params) {
		return this.$get("/storePayment", { params });
	}
	dingConfig(params) {
		return this.$get("/index/dingConfig", { params });
	}
}
export default Public;
